<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //合并对象属性
        let target = {a:1}
        let s1 = {b:2}
        let s2 = {c:3}

        //将s1 s2 合并到 target
        Object.assign(target,s1,s2)
        console.log(target)
    </script>
</head>
<body>

</body>
</html>